﻿using System.ServiceModel;

namespace TfsRollUp.Core
{
    /// <summary>
    /// Management interface for the rollup plugin
    /// </summary>
    [ServiceContract(Namespace = "http://TfsRollUp.CodePlex.com/NamedPipe1")]
    public interface IManager
    {
        /// <summary>
        /// Enable/Disable processing of workitems
        /// </summary>
        [OperationContract]
        void EnableRollUpProcessing(bool enableProcessing);

        /// <summary>
        /// Enable or disable the saving of calculation result information in this workitem
        /// </summary>
        [OperationContract]
        int MonitorWorkItem(int workItemId, bool enable);
    }
}
